package com.yangle.frame.admin.entity;

import java.io.Serializable;

public class ResultStatus implements Serializable {
    private boolean success = false;
    private String message;
    private boolean closeCurrent = false;
    private String forward;

    public ResultStatus(boolean success) {
        this.success = success;
    }

    public ResultStatus(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public ResultStatus(boolean success, String message, String forward, boolean closeCurrent) {
        this.success = success;
        this.message = message;
        this.forward = forward;
        this.closeCurrent = closeCurrent;
    }

    public boolean isSuccess() {
        return this.success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isCloseCurrent() {
        return this.closeCurrent;
    }

    public void setCloseCurrent(boolean closeCurrent) {
        this.closeCurrent = closeCurrent;
    }

    public String getForward() {
        return this.forward;
    }

    public void setForward(String forward) {
        this.forward = forward;
    }
}